<template>
	<tm-fullView>
		<template v-slot:default="{info}">
			<view class="grey text " :class="$tm.vx.state().tmVuetify.black?'black bk':''" :style="{minHeight:info.height+'px'}">
				<view>
					<tm-menubars title="日历" color="bg-gradient-blue-accent"  :showback="true"></tm-menubars>
				
					<tm-sheet :shadow="24">
						<view class="text-size-s text-weight-b mb-24 ">嵌入式弹层日历</view>
						<tm-calendar :black="false" @confirm="test" color="bg-gradient-blue-accent">
							<tm-button theme="bg-gradient-blue-accent">打开日历</tm-button>
						</tm-calendar>
						<tm-calendar :show-nongli="true">
							<tm-button :black="false"  theme="bg-gradient-blue-accent">打开农历日历</tm-button>
						</tm-calendar>
					</tm-sheet>
					<tm-sheet :shadow="24">
						<view class="text-size-s text-weight-b mb-24 ">时间限定,指定日期样式,及范围模式</view>
						<tm-calendar :txt="txt" :selected-date-class="dateClass" color="bg-gradient-orange-accent" default-value="2021-8-24" time-start="2021-8-10" time-end="2021-8-31">
							<tm-button theme="bg-gradient-orange-accent">时间限定八月份</tm-button>
						</tm-calendar>
						<tm-calendar default-value="2021-8-1" color="pink" mode="rang" bing-start="2021-8-10" bing-end="2021-8-20">
							<tm-button  theme="bg-gradient-pink-accent" >范围选择</tm-button>
						</tm-calendar>
					</tm-sheet>
					<tm-sheet :shadow="24">
						<view class="text-size-s text-weight-b mb-24 ">月份日历及暗黑模式</view>
						<tm-monthCalendar @confirm="test" default-value="2021-8-24">
							<tm-button theme="bg-gradient-green-accent">月份日历</tm-button>
						</tm-monthCalendar>
						<tm-calendar black >
							<tm-button  >暗黑模式</tm-button>
						</tm-calendar>
					</tm-sheet>
					<tm-sheet :shadow="24">
						<view class="text-size-s text-weight-b mb-24 ">嵌入式日历</view>
						
					</tm-sheet>
					<tm-calendarView  color="bg-gradient-pink-accent"></tm-calendarView>
				</view>
			</view>
		</template>
	</tm-fullView>
	
</template>

<script>
	import tmFullView from "@/tm-vuetify/components/tm-fullView/tm-fullView.vue"
	import tmMenubars from "@/tm-vuetify/components/tm-menubars/tm-menubars.vue"
	import tmSheet from "@/tm-vuetify/components/tm-sheet/tm-sheet.vue"
	import tmCalendarView from "@/tm-vuetify/components/tm-calendarView/tm-calendarView.vue"
	import tmCalendar from "@/tm-vuetify/components/tm-calendar/tm-calendar.vue"
	import tmMonthCalendar from "@/tm-vuetify/components/tm-monthCalendar/tm-monthCalendar.vue"
	import tmButton from "@/tm-vuetify/components/tm-button/tm-button.vue"
	export default {
		components:{tmFullView,tmMenubars,tmSheet,tmButton,tmCalendarView,tmCalendar,tmMonthCalendar},
		data() {
			return {
				// 下标文本设定.
				txt:[
					{date:'2021-8-20',text:"哈哈"},
					{date:'2021-8-21',text:"呵呵"},
					{date:'2021-8-22',text:"浪哈"},
					{date:'2021-8-23',text:"满员了"},
				],
				// 指定日期的样式 。
				dateClass:[
					{date:'2021-8-20',class:" red "},
					{date:'2021-8-21',class:" blue   "},
					{date:'2021-8-22',class:" bg-gradient-blue-accent  "},
					{date:'2021-8-23',class:" green  "},
				]
			}
		},
		methods: {
			test(e){
				console.log(e);
			}
		}
	}
</script>

<style>
.text-white-cc{
	color: #FFF !important;
	
}
.text-white-cc span{
		color: #FFF !important;
	}
</style>
